<template>
  <div id="app">
    <header>
      <router-view name="header" />
    </header>
    <main>
      <div class="container">
        <router-view />
      </div>
    </main>
    <footer>
      <router-view name="footer" />
    </footer>
  </div>
</template>

<script>
export default {
  name: 'App'
}
</script>

<style lang="less">
html,
body {
  width: 100%;
  height: 100%;
}
#app {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}
header {
  width: 100%;
}
main {
  width: 100%;
  flex: 1;
  overflow-x: hidden;
  background: #f2f2f2;
  .container {
    margin: 0 auto;
    height: 1000px;
    overflow-y: hidden;
  }
}
footer {
  width: 100%;
}
</style>
